package org.daidai.abstrusewriting.homepage.hot.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2016/11/2.
 */
// "albumId": 4348,
//            "title": "古典音乐·巴赫的音乐宇宙",
//            "coverSmall": "http:\/\/fdfs.xmcdn.com\/group2\/M02\/01\/26\/wKgDr1Fk9rHDiBryAACAbRLsy_g713_mobile_small.jpg",
//            "coverMiddle": "http:\/\/fdfs.xmcdn.com\/group2\/M02\/01\/26\/wKgDr1Fk9rHDiBryAACAbRLsy_g713_mobile_large.jpg",
//            "updatedAt": 1476267432000,
//            "uid": 1353815,
//            "intro": " 约翰·塞巴斯蒂安·巴赫（德语：Johann Sebastian Bach，1685年3月31日－1750年7月28日），巴洛克时期的德国作曲家，杰出的管风琴、小提琴、大键琴演奏家，同作曲家亨德尔和泰",
//            "tracks": 27,
//            "playTimes": 1157467,
//            "playsCounts": 1157467,
//            "commentsCount": 0,
//            "recSrc": "ItemRec:mysql:cf1",
//            "recTrack": "itemRec:105"
public class RecommendItemDetail implements Parcelable{
    @SerializedName("albumId")
    private String albumId;
    @SerializedName("title")
    private String title;
    @SerializedName("coverSmall")
    private String coverSmall;
    @SerializedName("coverMiddle")
    private String coverMiddle;
    @SerializedName("uid")
    private String uid;
    @SerializedName("intro")
    private String intro;
    @SerializedName("playTimes")
    private long playTimes;
    @SerializedName("playsCounts")
    private long playsCounts;
    @SerializedName("tracks")
    private int tracks;

    protected RecommendItemDetail(Parcel in) {
        albumId = in.readString();
        title = in.readString();
        coverSmall = in.readString();
        coverMiddle = in.readString();
        uid = in.readString();
        intro = in.readString();
        playTimes = in.readLong();
        playsCounts = in.readLong();
        tracks = in.readInt();
    }

    public static final Creator<RecommendItemDetail> CREATOR = new Creator<RecommendItemDetail>() {
        @Override
        public RecommendItemDetail createFromParcel(Parcel in) {
            return new RecommendItemDetail(in);
        }

        @Override
        public RecommendItemDetail[] newArray(int size) {
            return new RecommendItemDetail[size];
        }
    };

    public int getTracks() {
        return tracks;
    }

    public String getAlbumId() {
        return albumId;
    }

    public String getCoverMiddle() {
        return coverMiddle;
    }

    public String getCoverSmall() {
        return coverSmall;
    }

    public String getIntro() {
        return intro;
    }

    public long getPlaysCounts() {
        return playsCounts;
    }

    public long getPlayTimes() {
        return playTimes;
    }

    public String getTitle() {
        return title;
    }

    public String getUid() {
        return uid;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(albumId);
        dest.writeString(title);
        dest.writeString(coverSmall);
        dest.writeString(coverMiddle);
        dest.writeString(uid);
        dest.writeString(intro);
        dest.writeLong(playTimes);
        dest.writeLong(playsCounts);
        dest.writeInt(tracks);
    }
}
